<script type="text/javascript">
	//List Configuration
	$j("#list_conclusion").jqGrid({
		url:'conclusion/list',
		datatype:'json',
		mtype:'POST',
		colNames:['Nombre', 'Descripcion', "Masculino", "Femenino"],
		colModel:[
		          {
			          name:'conclusion_name',
			          index:'conclusion_name',
			          width:30,
			          editable: true
			      },
		          {
			          name:'conclusion',
			          index:'conclusion',
			          width:50,
			          editable: true,
			          edittype: 'textarea',
			          editoptions: { rows:'3', cols:'30'}
			      },
		          {
			          name:'male',
			          index:'male',
			          width:10,
			          editable: true,
			          edittype: 'checkbox',
			          formatter:'checkbox',
			          editoptions: { value:"1:0"},
			          align:"center",
			          search:false
			      },
		          {
			          name:'female',
			          index:'female',
			          width:10,
			          editable: true,
			          edittype: 'checkbox',
			          formatter: 'checkbox',
			          editoptions: { value:"1:0"},
			          align:"center",
			          search:false
			      }
		],
		pager:'#gridpager_conclusion',
		loadtext: 'Cargando Plantillas de Conclusiones ...',
		rowNum:10,
		rowList:[10],
		sortname:'conclusion_name',
		sortorder:'asc',
		autowidth:true,
		viewrecords:true,
		onSelectRow:function(id){},
		editurl:'conclusion/save',
		scrollOffset:0
		//caption:'Conclusiones'
	});

	$j("#list_conclusion").setGridWidth("670",true);
	$j("#list_conclusion").setGridHeight(220);
	
	//Form editing
	$j("#list_conclusion").jqGrid('navGrid',
								  '#gridpager_conclusion',
								  {
									edit:true,
									add:true,
									del:true,
									search:true
								   },
								   {
									   closeAfterEdit:true,
									   editCaption: "Modificar Conclusión"
								   },
								   {
									   closeAfterAdd:true,
									   addCaption: "Nueva Conclusión"
									},
									{
										msg: "¿Desea eliminar la conclusión seleccionada?",
										caption: "Eliminar Conclusión",
										width:300
									},
									{
										sopt:['eq','bw','ew','cn']
									});
</script>
